function createstep1(which){
if (!document.layers)
document.forms.step2.step2code.disabled=false

thecode='<script language="JavaScript1.2">\n\n\// Popup by http://www.htmlpopups.com/\n\n'

if (which==3)
thecode+='//Specify rate of display (1/freq)\nvar freq=5\n\nvar random_num=Math.floor(Math.random()*freq)\nif (random_num==0)\nwindow.onload=initbox\n'

if (!document.layers)
thecode+=document.forms.cache.cache2.value+'\n'
else
thecode+=document.nscache.document.forms.cache.cache2.value+'\n'


if (which==1)
thecode+='\nwindow.onload=initbox\n'
else if (which==2)
thecode+='\nfunction get_cookie(Name) {\nvar search = Name + "="\nvar returnvalue = ""\nif (document.cookie.length > 0) {\noffset = document.cookie.indexOf(search)\nif (offset != -1) {\noffset += search.length\nend = document.cookie.indexOf(";", offset)\nif (end == -1)\nend = document.cookie.length;\nreturnvalue=unescape(document.cookie.substring(offset, end))\n}\n}\nreturn returnvalue;\n}\n\nfunction dropornot(){\nif (get_cookie("droppedin")==""){\nwindow.onload=initbox\ndocument.cookie="droppedin=yes"\n}\n}\ndropornot()'

thecode+='\n<\/script>'
document.forms.step2.step2code.value=thecode

}

function highlight(x){
var x=x+1
document.forms[x].elements[0].select()
}